package com.wjl.shop.controller;

import com.wjl.shop.entity.DealerRelationshipTable;
import com.wjl.shop.service.DealerRelationshipTableService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 经销商关系表(DealerRelationshipTable)表控制层
 *
 * @author makejava
 * @since 2021-10-06 14:43:18
 */
@RestController
@RequestMapping("dealerRelationshipTable")
@CrossOrigin
public class DealerRelationshipTableController {
    /**
     * 服务对象
     */
    @Resource
    private DealerRelationshipTableService dealerRelationshipTableService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public DealerRelationshipTable selectOne(Integer id) {
        return this.dealerRelationshipTableService.queryById(id);
    }

}
